
@extends('layouts.master')

@section("css")
    @parent
@stop

@section("body")
<div class="row">
    <div class="col-md-12">
        <!-- INPUTS -->
        <div class="panel">
            <div class="panel-heading">
                <h3 class="panel-title">认证医生</h3>
            </div>
            <div class="panel-body">
                <input type="hidden" id="id" name="" value="{{$wechatDoctor['wechatDoctorInfo']['id']}}">
                <div class="input-group">
                    <span class="input-group-addon">姓<span style="visibility:hidden;">占位</span>名</span>
                    <input id="name" type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['name']}}" placeholder="请输入医生姓名">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">医生图片</span>
                    <div id="img-wrapper1" class="input_div">
                        <div class="img_div2" style="display: inherit-block;">
                            <img style="width: 100px;" id="cn_img1" src="{{$wechatDoctor['wechatDoctorInfo']['headimg']}}">
                        </div>
                        <br>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <div id="upload1_btn" class="upload_btn btn btn-primary">
                            上传图片
                        </div>
                        <input type="file" id="upload1" style="display:none">
                    </div>
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">职<span style="visibility:hidden;">占位</span>称</span>
                    <input id="job_title" type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['job_title']}}" placeholder="请输入医生职称">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">医生类型</span>
                    <select id="dr_type" class="form-control">
                        @foreach($doctorTypes as $key => $value)
                        <option value="{{$key}}"
                            @if($wechatDoctor['wechatDoctorInfo']['dr_type'] == $key)
                                selected="selected" 
                            @endif 
                        >{{$value}}</option>
                        @endforeach
                    </select>
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">所属医院</span>
                    <input id="hospital" type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['hospital']}}" placeholder="请输入医生所属医院">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">所属科室</span>
                    <input id="section_value" type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['section']}}" placeholder="请输入医生所属科室">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">简<span style="visibility:hidden;">占位</span>历</span>
                    <textarea id="resume" class="form-control" placeholder="请输入医生简历" rows="5">{{$wechatDoctor['wechatDoctorInfo']['resume']}}</textarea>
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">医生二维码</span>
                    <img style="width: 200px;" src="{{$qrcode}}">
                </div>
                <br>
                <button type="button" class="btn btn-primary btn-block update_btn">确认修改</button>
                <br>
                <a href="javascript:history.back(-1)">
                    <button type="button" class="btn btn-info btn-block">返回上一页</button>
                </a>
            </div>
        </div>
        <!-- END INPUTS -->
    </div>
</div>
@stop

@section("js")
    @parent
    <script type="text/javascript" src="/lib/js/qiniu.min.js"></script>
    <script type="text/javascript" src="/lib/js/plupload.full.min.js"></script>
    <script type="text/javascript" src="/js/pages/admin/wechat_doctor/update.js"></script>
@stop